const path=require('path')
const fs=require('fs')
const pathStr=path.join('/a','/b','/c','/d')
const fpath='/a/b/c/d.html'
// console.log(pathStr)
// console.log(__dirname)
// fs.readFile(path.join(__dirname,'./2.txt'),'utf8',function(err,dataStr){
//     if(err){
//         return console.log(err.message)
//     }
//     console.log(dataStr)
// })
console.log(path.extname(fpath))
console.log(path.basename(fpath))